import { Component, OnInit, Input } from "@angular/core";
import { AppGlobalService } from "src/app/shared/service/app-global.service";

@Component({
  selector: "app-recommand-query",
  templateUrl: "./recommand-query.component.html",
  styleUrls: ["./recommand-query.component.scss"],
})
export class RecommandQueryComponent implements OnInit {
  @Input() tagData: any;
  constructor(private appGlobalService: AppGlobalService) {}

  ngOnInit() {}

  handleClick(item) {
    const sessionId = localStorage.getItem("sessionId");
    const pageParams = {
      pageId: item.target,
      params: item.params,
      sessionId,
    };
    this.appGlobalService.goToForward(pageParams);
  }
}
